﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Celeriq.Common;

namespace Celeriq.ManagementStudio
{
	public partial class UserEditForm : Form
	{
		private string _serverName;
		private UserCredentials _credentials;
		private string _publicKey;

		public UserEditForm()
		{
			InitializeComponent();
		}

		public UserEditForm(string serverName, UserCredentials credentials, string publicKey)
			: this()
		{
			_serverName = serverName;
			_credentials = credentials;
			_publicKey = publicKey;
		}

		private void cmdOK_Click(object sender, EventArgs e)
		{
			this.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.Close();
		}

		private void cmdCancel_Click(object sender, EventArgs e)
		{
			this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.Close();
		}
	}
}
